import {
    FileOutlined
  } from '@ant-design/icons';

  // 主页
  import { Index as Home } from '../views/home/Index'

  // 设备管理
  import { Index as SetUp } from '../views/setup/Index'
  import { Channel as SetChannel } from '../views/setup/channel'
  import { Consumption as SetUpConsumption } from '../views/setup/consumption'
  import { Payment as SetUpPayment } from '../views/setup/payment'
  
  // 会员管理
  import { Index as Member } from '../views/member/Index'
  import { Manage as MemberManage } from '../views/member/manage'
  import { Live as MemberLive } from '../views/member/live'
  import { Blacklist as MemberBlacklist } from '../views/member/blacklist'
  import { Grade as MemberGrade } from '../views/member/grade'
  import { Integral as MemberIntegral } from '../views/member/integral'

  // 财务管理
  import { Index as Finance } from '../views/Finance/Index'
  import { Overview as FinanceOverview } from '../views/Finance/overview'
  import { Stream as FinanceStream } from '../views/Finance/stream'
  import { Record as FinanceRecord } from '../views/Finance/record'
  import { Room as FinanceRoom } from '../views/Finance/room'
  import { Channel as FinanceChannel } from '../views/Finance/channel'
  import { Home as FinanceHome } from '../views/Finance/home'
  import { NoHome as FinanceNohome } from '../views/Finance/nohome'
  import { Guest as FinanceGuest } from '../views/Finance/guest'

  // 订单管理
  import { Order } from '../views/order/orderset'


  // 引用自定义图标方法
// import { createFromIconfontCN } from '@ant-design/icons'
// import "../images/font_etf1asch51t/iconfont"
// const LogoTab = createFromIconfontCN({
//   scriptUrl: '../images/font_etf1asch51t/iconfont'
// })


  
  
//   左侧菜单数据
  const menus = [
    {
      label: '系统首页',
      // icon: <LogoTab type='icon-shouye'/>,
      icon:<i className='iconfont icon-shouye'/>,
      key: '/', 
      element: <Home/>
    },

    // 设置管理
    {
      label: '设置管理',
      // icon: <LogoTab type='icon-yingyongguanli'/>,
      icon:<i className='iconfont icon-yingyongguanli'/>,
      key: '/setup', 
      element: <SetUp/>,
      children: [
        {
            label: '渠道设置',
            icon: <FileOutlined />,
            key: '/setup/channel', 
            element: <SetChannel/>,
            index: 1
          },
        {
          label: '消费项目',
          icon: <FileOutlined />,
          key: '/setup/consumption', 
          element: <SetUpConsumption/>
        },
        {
          label: '支付管理',
          icon: <FileOutlined />,
          key: '/setup/payment', 
          element: <SetUpPayment/>
        }
      ]
    },

    // 会员管理
    {
      label: '会员管理',
      // icon: <LogoTab type='icon-shengchenghuiyuanqia'/>,
      icon:<i className='iconfont icon-shengchenghuiyuanqia'/>,
      key: '/member', 
      element: <Member/>,
      children: [
        {
          label: '会员管理',
          icon: <FileOutlined />,
          key: '/member/manage',
          element: <MemberManage/>,
          index: 1
        },
        {
          label: '入住会员',
          icon: <FileOutlined />,
          key: '/member/live',
          element: <MemberLive/>
        },
        {
          label: '黑名单',
          icon: <FileOutlined />,
          key: '/member/blacklist',
          element: <MemberBlacklist/>
        },
        {
          label: '会员等级',
          icon: <FileOutlined />,
          key: '/member/grade',
          element: <MemberGrade/>
        },
        {
         label: '积分设置',
         icon: <FileOutlined />,
         key: '/member/integral',
         element: <MemberIntegral/>
        }
      ]
    },

    // 财务管理
    {
      label: '财务管理',
      // icon: <LogoTab type='icon-caiwu'/>,
      icon:<i className='iconfont icon-caiwu'/>,
      key: '/Finance', 
      element: <Finance/>,
      children: [
        {
          label: '财务概览',
          icon: <FileOutlined />,
          key: '/Finance/overview', 
          element: <FinanceOverview/>,
          index: 1
        },
        {
          label: '收支流水表',
          icon: <FileOutlined />,
          key: '/Finance/stream', 
          element: <FinanceStream/>
        },
        {
          label: '交接班记录表',
          icon: <FileOutlined />,
          key: '/Finance/record', 
          element: <FinanceRecord/>
        },    
        {
          label: '房间销售表',
          icon: <FileOutlined />,
          key: '/Finance/room', 
          element: <FinanceRoom/>
        },
        {
          label: '渠道销售表',
          icon: <FileOutlined />,
          key: '/Finance/channel', 
          element: <FinanceChannel/>
        },
        {
          label: '房费日销销售表',
          icon: <FileOutlined />,
          key: '/Finance/home', 
          element: <FinanceHome/>
        },  
        {
          label: '非房费日销售表',
          icon: <FileOutlined />,
          key: '/Finance/nohome', 
          element: <FinanceNohome/>
        }, 
        {
         label: '在住客人报表',
         icon: <FileOutlined />,
         key: '/Finance/guest', 
         element: <FinanceGuest/>
        }, 
    ]
    },

    // 订单管理
    {
      label: '订单管理',
      // icon: <LogoTab type='icon-dingdan'/>,
      icon:<i className='iconfont icon-dingdan'/>,
      key: '/order',
      element: <Order/>
    }
  ]
  
  export default menus